package icu.sehnen.service.impl;

import icu.sehnen.mapper.NewsCategoryMapper;
import icu.sehnen.model.NewsCategoryModel;
import icu.sehnen.service.NewsCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsCategoryServiceImpl implements NewsCategoryService {

    @Autowired
    NewsCategoryMapper newsCategoryMapper;
    @Override
    public List<NewsCategoryModel> findAll() {

        return  newsCategoryMapper.findAll();
    }
}
